<template>
    <el-menu default-active="2-2" :router="true"
    background-color="#000" text-color="#fff" active-text-color="orange"
    >
    <el-menu-item index="1" :route="{ path: '/main/site/123' }">
      <i class="el-icon-menu"></i>
      <span slot="title">工作台</span>
    </el-menu-item>
    <el-submenu index="2">
      <template slot="title">
        <i class="el-icon-s-fold"></i>
        <span>权限管理</span>
      </template>
      <el-menu-item index="2-1" :route="{path:'/main/premis'}">权限管理</el-menu-item>
      <el-menu-item index="2-2" :route="{path:'/main/users'}">用户管理</el-menu-item>
      <el-menu-item index="2-3" :route="{path:'/main/roles'}">角色管理</el-menu-item>
    </el-submenu>
    <el-menu-item index="3">
      <i class="el-icon-menu"></i>
      <span slot="title">医生团队管理</span>
    </el-menu-item>
    <el-menu-item index="4" disabled>
      <i class="el-icon-document"></i>
      <span slot="title">居民管理</span>
    </el-menu-item>
    <el-menu-item index="5">
      <i class="el-icon-setting"></i>
      <span slot="title">数据分析</span>
    </el-menu-item>
 </el-menu>
</template>

<script>
export default {
  methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
};
</script>

<style>

</style>